# 关于时间的模块
import time
print(time.time())
# 1561946371.3996794

res = time.struct_time((1991,1,1,1,1,1,1,1,1))
print(res)
# time.struct_time(tm_year=1991, tm_mon=1, tm_mday=1, tm_hour=1, tm_min=1, tm_sec=1, tm_wday=1, tm_yday=1, tm_isdst=1)
# print(time.CLOCK_MONOTONIC)

# f: function
# c: class
# v: variable  变量
# m: method    对象.方法

# time.time()：时间戳  秒数
time.sleep(1)
print('嗯哼')
# 粗略计算程序运行的时间

# def test():
#     for i in range(1,100000):
#         print(i)

# start_time = time.time()
# test()
# end = time.time()
# print('test()耗时：{}'.format(end-start_time))


from datetime import datetime
res = datetime.today()
print(res)
print(type(res))   # <class 'datetime.datetime'>
print(res.date())
print(res.strftime('%Y-%m-%d %H: %M: %S'))




